package com.ling.team.mainTest;

import com.ling.team.domain.Employee;
import com.ling.team.service.NameListService;
import org.junit.Test;

public class NameListServiceTest {
    @Test
    public void testNameListService() {
        NameListService service = new NameListService();
        for (Employee employee : service.getEmployees()
        ) {
            System.out.println(employee);
        }
    }

    @Test
    public void testGetAllEmployees() {
        NameListService service = new NameListService();

        for (Employee employee : service.getAllEmployees()
        ) {
            System.out.println(employee);
        }
    }

    @Test
    public void testGetEmployee() {
        NameListService service = new NameListService();
        try {
            System.out.println(service.getEmployee(12));
        }catch (Exception e){
            e.printStackTrace();
            System.out.println(e.getMessage());
        }


    }
}

